package com.mike.bdb.model;

import com.sleepycat.persist.model.Entity;
import com.sleepycat.persist.model.PrimaryKey;
import com.sleepycat.persist.model.Relationship;
import com.sleepycat.persist.model.SecondaryKey;

@Entity
public class Mission {
	@PrimaryKey
	private String id;
	@SecondaryKey (relate = Relationship.MANY_TO_ONE)
	private String name;
	private int prefixId;
	private int suffixId;
	private byte type;
	private String detail;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPrefixId() {
		return prefixId;
	}
	public void setPrefixId(int prefixId) {
		this.prefixId = prefixId;
	}
	public int getSuffixId() {
		return suffixId;
	}
	public void setSuffixId(int suffixId) {
		this.suffixId = suffixId;
	}
	public byte getType() {
		return type;
	}
	public void setType(byte type) {
		this.type = type;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
}
